package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.NiceDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NiceDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NiceDetail record);

    NiceDetail selectByPrimaryKey(Long id);

    List<NiceDetail> selectAll();

    int updateByPrimaryKey(NiceDetail record);


    List<NiceDetail> selectByUserIdAndContentId(@Param("userId") Long userId, @Param("contentId") Long contentId);

    int getAssistCountByUserId(Long userId);
}